//
//  DatePickerViewController.h
//  SKStock
//
//  Created by InYong Shon on 11. 1. 24..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class DatePickerViewController;

@protocol DatePickerViewControllerDelegate

- (void)datePickerViewControllerDidSelected:(DatePickerViewController *)controller dateStr:(NSString*)dateStr;
- (void)datePickerViewControllerDidCancelled:(DatePickerViewController *)controller;

@end

@interface DatePickerViewController : UIViewController 
{
	IBOutlet	UIDatePicker*		_datePicker;
	NSDateFormatter*	_dateFormatter;
	NSString* _strDate;
	
	id<DatePickerViewControllerDelegate> _delegate;
}

/**
 Done
 @param sender <#sender description#>
 */
- (IBAction)doneButtonAction:(id)sender;

/**
 Cancel
 @param sender <#sender description#>
 */
- (IBAction)cancelButtonAction:(id)sender;

@property (nonatomic, assign) id<DatePickerViewControllerDelegate> delegate;

- (void)initDatePosition:(NSString*)str;

@end
